Optimal. Leaf size=71 \[ -\frac {e^{-a} \sqrt {\pi } \text {Erf}\left (\sqrt {b} x^{n/2}\right )}{2 \sqrt {b} n}+\frac {e^a \sqrt {\pi } \text {Erfi}\left (\sqrt {b} x^{n/2}\right )}{2 \sqrt {b} n} \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.03, antiderivative size = 71, normalized size of antiderivative = 1.00, number of steps
used = 4, number of rules used = 4, integrand size = 18, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.222, Rules used = {5464, 5406,
2235, 2236} \begin {gather*} \frac {\sqrt {\pi } e^a \text {Erfi}\left (\sqrt {b} x^{n/2}\right )}{2 \sqrt {b} n}-\frac {\sqrt {\pi } e^{-a} \text {Erf}\left (\sqrt {b} x^{n/2}\right )}{2 \sqrt {b} n} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 2235
Rule 2236
Rule 5406
Rule 5464
Rubi steps
\begin {align*} \int x^{-1+\frac {n}{2}} \sinh \left (a+b x^n\right ) \, dx &=\frac {2 \text {Subst}\left (\int \sinh \left (a+b x^2\right ) \, dx,x,x^{n/2}\right )}{n}\\ &=-\frac {\text {Subst}\left (\int e^{-a-b x^2} \, dx,x,x^{n/2}\right )}{n}+\frac {\text {Subst}\left (\int e^{a+b x^2} \, dx,x,x^{n/2}\right )}{n}\\ &=-\frac {e^{-a} \sqrt {\pi } \text {erf}\left (\sqrt {b} x^{n/2}\right )}{2 \sqrt {b} n}+\frac {e^a \sqrt {\pi } \text {erfi}\left (\sqrt {b} x^{n/2}\right )}{2 \sqrt {b} n}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A]
time = 1.09, size = 60, normalized size = 0.85 \begin {gather*} \frac {\sqrt {\pi } \left (\text {Erf}\left (\sqrt {b} x^{n/2}\right ) (-\cosh (a)+\sinh (a))+\text {Erfi}\left (\sqrt {b} x^{n/2}\right ) (\cosh (a)+\sinh (a))\right )}{2 \sqrt {b} n} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A]
time = 0.44, size = 54, normalized size = 0.76
method | result | size |
risch | \(-\frac {{\mathrm e}^{-a} \sqrt {\pi }\, \erf \left (x^{\frac {n}{2}} \sqrt {b}\right )}{2 n \sqrt {b}}+\frac {{\mathrm e}^{a} \sqrt {\pi }\, \erf \left (\sqrt {-b}\, x^{\frac {n}{2}}\right )}{2 n \sqrt {-b}}\) | \(54\) |
meijerg | \(\frac {\sqrt {2}\, \sqrt {\pi }\, \left (\frac {\sqrt {i b}\, \sqrt {2}\, \erf \left (x^{\frac {n}{2}} \sqrt {b}\right )}{2 \sqrt {b}}+\frac {\sqrt {i b}\, \sqrt {2}\, \erfi \left (x^{\frac {n}{2}} \sqrt {b}\right )}{2 \sqrt {b}}\right ) \sinh \left (a \right )}{2 \sqrt {i b}\, n}-\frac {i \sqrt {2}\, \sqrt {\pi }\, \left (-\frac {\sqrt {2}\, \left (i b \right )^{\frac {3}{2}} \erf \left (x^{\frac {n}{2}} \sqrt {b}\right )}{2 b^{\frac {3}{2}}}+\frac {\sqrt {2}\, \left (i b \right )^{\frac {3}{2}} \erfi \left (x^{\frac {n}{2}} \sqrt {b}\right )}{2 b^{\frac {3}{2}}}\right ) \cosh \left (a \right )}{2 \sqrt {i b}\, n}\) | \(139\) |
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [A]
time = 0.33, size = 69, normalized size = 0.97 \begin {gather*} -\frac {\sqrt {\pi } x^{\frac {1}{2} \, n} {\left (\operatorname {erf}\left (\sqrt {b x^{n}}\right ) - 1\right )} e^{\left (-a\right )}}{2 \, \sqrt {b x^{n}} n} + \frac {\sqrt {\pi } x^{\frac {1}{2} \, n} {\left (\operatorname {erf}\left (\sqrt {-b x^{n}}\right ) - 1\right )} e^{a}}{2 \, \sqrt {-b x^{n}} n} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [A]
time = 0.40, size = 97, normalized size = 1.37 \begin {gather*} -\frac {\sqrt {\pi } \sqrt {-b} {\left (\cosh \left (a\right ) + \sinh \left (a\right )\right )} \operatorname {erf}\left (\sqrt {-b} x \cosh \left (\frac {1}{2} \, {\left (n - 2\right )} \log \left (x\right )\right ) + \sqrt {-b} x \sinh \left (\frac {1}{2} \, {\left (n - 2\right )} \log \left (x\right )\right )\right ) + \sqrt {\pi } \sqrt {b} {\left (\cosh \left (a\right ) - \sinh \left (a\right )\right )} \operatorname {erf}\left (\sqrt {b} x \cosh \left (\frac {1}{2} \, {\left (n - 2\right )} \log \left (x\right )\right ) + \sqrt {b} x \sinh \left (\frac {1}{2} \, {\left (n - 2\right )} \log \left (x\right )\right )\right )}{2 \, b n} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \int x^{\frac {n}{2} - 1} \sinh {\left (a + b x^{n} \right )}\, dx \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [A]
time = 0.44, size = 53, normalized size = 0.75 \begin {gather*} \frac {\frac {\sqrt {\pi } \operatorname {erf}\left (-\sqrt {b} \sqrt {x^{n}}\right ) e^{\left (-a\right )}}{\sqrt {b}} - \frac {\sqrt {\pi } \operatorname {erf}\left (-\sqrt {-b} \sqrt {x^{n}}\right ) e^{a}}{\sqrt {-b}}}{2 \, n} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Mupad [F]
time = 0.00, size = -1, normalized size = -0.01 \begin {gather*} \int x^{\frac {n}{2}-1}\,\mathrm {sinh}\left (a+b\,x^n\right ) \,d x \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________